Skip to content

Show the Services card as an accordion with a one-line summary per entry - #68

Merged
rodchristiansen merged 1 commit into
mainfrom
feature/services-accordion
Oct 13, 2026
Merged

rodchristiansen merged 1 commit into
mainfrom
feature/services-accordion

Conversation

@rodchristiansen

Copy link
Copy Markdown
Contributor

Closes #67

  • Each footprint entry is a collapsed WinUI Expander (Margin 0,4, stretched). Its header is the template's full-width toggle button, whose content alignment defaults to Stretch in this Windows App SDK (checked in generic.xaml). So a click, Space or Enter anywhere on the row toggles it, with no separate chevron target.
  • Collapsed header: friendly name (BodyStrong), one secondary summary line (Scheduled task · Daily at 03:00 · Last result 0, or · Never run), and a 10px state dot with its word on the right. The dot uses Success for Running, Attention for Ready and Neutral otherwise.
  • Expanded body: label/value rows in ReportMate's order and labels, in this order: Name, Start type, Status, Account, Path and arguments, Triggers, Last run, Last result, Next run. Rows that don't apply are left out. "Unknown" appears only when the task exists but can't be read.
  • InstallFootprint now also reads the task's path, enabled flag, principal (well-known SIDs named), Exec actions and next run time through the Task Scheduler COM API, off the UI thread and without elevation. It also has pure TaskStatus / ServiceStatus builders.
  • Times use CultureInfo.CurrentCulture: "t" for trigger times, "g" for Last run and Next run. The tests pin en-GB and en-US.
  • The installer registers one scheduled task and no services, so the card stays. Services are not queried, because there are none to query. The service row builder and its formatting are unit-tested for when one is added.

Risk: medium

Each service or scheduled task is a collapsed Expander whose whole header
row toggles it (click, Space or Enter). The header shows the friendly name,
one summary line (kind, schedule, last result) and a state dot coloured from
theme brushes. Expanding it shows the fields ReportMate's Windows System
module uses, in its order: Name, Start type, Status, Account, Path and
arguments, Triggers, Last run, Last result and Next run, omitting rows that
do not apply.

Task queries now also read the principal, Exec actions and next run time.
Times follow the user's culture: short time for triggers, short date and
time for Last run and Next run.
@rodchristiansen
rodchristiansen merged commit 5268ec2 into main Oct 13, 2026
2 checks passed
@rodchristiansen
rodchristiansen deleted the feature/services-accordion branch October 13, 2026 08:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Prefs: show the Services card as an accordion

1 participant